<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<!-- Bootstrap -->
		<link rel="stylesheet" type="text/css" href="../../styles/customCss/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="../../styles/customCss/bootstrap-theme.min.css" />
		<!-- 导航菜单栏右侧点击滑入 -->
		<!-- 用户样式 -->
		<link rel="stylesheet" type="text/css" href="../../styles/customCss/style.css" />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script type="text/javascript" src="../../javascript/adminJs/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script type="text/javascript" src="../../javascript/customJs/bootstrap.min.js"></script>
<nav class="navbar navbar-inverse">
  	<div class="container-fluid">
	    <!-- Brand and toggle get grouped for better mobile display -->
	    <div class="navbar-header">
	      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
	        <span class="sr-only">Toggle navigation</span>
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	      </button>
	      <a class="navbar-brand" href="index"><img src="../../images/sy_logo.png"></a>
	    </div>

	    <!-- Collect the nav links, forms, and other content for toggling -->
	    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	      <ul class="nav navbar-nav">
	        <li class="active"><a href="newsList">资讯 <span class="sr-only">(current)</span></a></li>
	        <li><a href="index">最新任务</a></li>
	        <li class="dropdown" aria-labelledby="dropdownMenu3">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">发现 <span class="caret"></span></a>
	          <ul class="dropdown-menu">
	            <li><a href="#">找任务</a></li>
	            <li><a href="#">任务类别</a></li>
	            <li><a href="#">附近任务</a></li>
	            <li><a href="#">最火任务</a></li>
	          </ul>
	        </li>
	      </ul>
	      <form class="navbar-form navbar-left" role="search">
	        <div class="form-group">
	          <input type="text" class="form-control" placeholder="Search">
	        </div>
	        <button type="submit" class="btn btn-default">搜索</button>
	      </form>
	      <ul class="nav navbar-nav navbar-right">
	        <li>
	        <div id="getUser" style="display:none;">${customUser.userName}</div>
	        <a id="showUser"></a>
	        </li>
	        <li class="dropdown">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">更多 <span class="caret"></span></a>
	          <ul class="dropdown-menu">
	            <li><a href="login">登录</a></li>
	            <li><a href="register">注册</a></li>
	          </ul>
	        </li>
	      </ul>
	    </div><!-- /.navbar-collapse -->
  	</div><!-- /.container-fluid -->
    <script type="text/javascript">
    $(document).ready(function(){
    		
    	var str = document.getElementById("getUser").innerHTML;
    	if(str == ""||str == null){
    		document.getElementById("showUser").innerHTML = "亲，请登录...";
    	}
    	else{
    		document.getElementById("showUser").innerHTML = str+"&nbsp;&nbsp;|&nbsp;&nbsp;<a style='color:#fff;' href='loginOut'>退出</a>";
    	}
    });
    </script>
</nav>

